
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>BBetter管理系统</title>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link href="../public/css/main.css" rel="stylesheet">
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <a class="navbar-brand" href="#">BBetter管理系统</a>
        </div>
      </div>
    </nav>

    <div class="container-fluid">
      <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
          <ul class="nav nav-sidebar">
            <!-- class="active" -->
            <li><a href="/admin" >Lesson</a></li>
            <li><a href="/admin/book">Book</a></li>
            <li><a href="/admin/yo">Yo</a></li>
          </ul>
        </div>        
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <p>{{g}}</p>
          <p>{{d}}</p>
          <a class="btn btn-success" href="/admin/add">添加</a>
          <div class="table-responsive">
            <table class="table table-striped">
              <thead>
                <tr>
                  <th>id</th>
                  <th>范畴</th>
                  <th>名称</th>
                  <th>总数</th>
                  <th>进度</th>
                  <th>操作</th>
                </tr>
              </thead>
              <tbody>
                  {{each data}}
                  <tr>
                    <td>{{$value.id}}</td>
                    <td>{{$value.cluster}}</td>
                    <td>{{$value.name}}</td>
                    <td>{{$value.denominator}}</td>
                    <td>{{$value.numerator}}</td>
                    <td>
                      <a href="/admin/edit?id={{ $value.id }}">编辑</a>
                      <a href="/admin/delete?id={{ $value.id }}">删除</a>
                      <a href="/admin/detail?name={{ $value.name }}">详情</a>
                    </td>
                  </tr>
                  {{/each}}
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>
